package com.yami.shop.manager;

import com.yami.shop.bean.app.dto.ShopCartItemDto;
import com.yami.shop.bean.app.dto.ShopCartOrderMergerDto;
import com.yami.shop.bean.app.param.OrderParam;

import java.util.List;

/**
 * @author FrozenWatermelon
 * @date 2021/12/23
 */
public interface OrderUseScoreManager {

    /**
     * 订单使用积分，积分抵扣金额
     * @param shopCartOrderMergerDto 组装好的订单信息
     * @param orderParam 下单参数
     * @param allCartItem 订单内所有商品item
     */
    void orderUseScore(ShopCartOrderMergerDto shopCartOrderMergerDto, OrderParam orderParam, List<ShopCartItemDto> allCartItem);
}
